﻿using Db.Models.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Db.Enums.BlindWaterMark;
using SqlSugar;

namespace Db.Models
{
    public class ProcessedImage : UploadModelBase
    {

        public WaterMarkType waterMarkType { get; set; }


        public string Prefix { get; set; }
    

        [SugarColumn(IsNullable = true)]
        public string waterMarkText { get; set; }

        [SugarColumn(IsNullable = false)]
        public Guid OriginImageId { get; set; }


        [SugarColumn(IsNullable = true)]
        public Guid WaterMarkMaterialId { get; set; }


        /// <summary>
        /// 只对全盲水印（type=2）有效。level 的取值范围为{1,2,3}，默认值为1，level 值越大则图片受影响程度越大、盲水印效果越好。
        /// </summary>
        public int Level { get; set; } = 1;


        [SugarColumn(IsIgnore = true)]
        public OriginImage originImage { get; set; }


        [SugarColumn(IsIgnore = true)]
        public WaterMarkMaterial waterMarkMaterial { get; set; }


    }
}
